﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PSE.Tools.SchemaComparer.Extractor
{
    public class UnixToDosConverter
    {
        public static string UnixToDos(string text)
        {
            if (string.IsNullOrEmpty(text))
                return string.Empty;

            string unixEOL = Convert.ToString(Convert.ToChar(10));
            string dosEOL = Environment.NewLine;
            StringBuilder sb = new StringBuilder(text);
            return sb.Replace(unixEOL, dosEOL).ToString();
        }
    }
}
